# 导入redis模块
from redis import StrictRedis

class Config:
    DEBUG=None
    SECRET_KEY='T9uEyGnW8clB4bCR2MsKEl5HswY0xzp+ZU0uj371QsvC7Ly/1wXZZFjdv1WZ'
    SQLALCHEMY_DATABASE_URI='mysql://root:mysql@localhost/info18'
    SQLALCHEMY_TRACK_MODIFICATIONS=False
    SESSION_TYPE='redis'
    SESSION_REDIS=StrictRedis(host='127.0.0.1',port=6379)
    SESSION_USE_SIGNER=True
    PERMANENT_SESSION_LIFETIME=86400
class DevelopmentConfig(Config):
    DEBUG = True
class ProductionConfig(Config):
    DEBUG = False
config_dict={
    'deve':DevelopmentConfig,
    'prod':ProductionConfig
}